import { http } from "@/uni-sub-base/service/request.js"
let serviceName = "Miniapp/"
import { getShopUrls, getBaseUrl } from "@/utils/appUrls.js"

//获取分类
export function GetMiniappCategoryTree() {
    return http.post({
        url: getBaseUrl() + serviceName + "GetMiniappCategoryTree",
    })
}
//提交
export function ApplyMiniapp(data) {
    return http.post({
        url: getBaseUrl() + serviceName + "ApplyMiniapp",
        data,
    })
}
//小程序列表
export function GetMiniappList() {
    return http.get({
        url: getBaseUrl() + serviceName + "GetMiniappList",
    })
}
//小程序列表
export function GetMiniappApply(id) {
    return http.get({
        url: getBaseUrl() + serviceName + "GetMiniappApply?id=" + id,
    })
}
